#!/bin/bash

# 检测CPU架构
ARCH=$(uname -m)

# 根据架构选择可执行文件
if [ "$ARCH" == "x86_64" ]; then
    echo "当前机器cpu架构:x86_64"
    /app/release/caddy-ui-linux-amd64
elif [ "$ARCH" == "aarch64" ]; then
    echo "当前机器cpu架构:aarch64"
    /app/release/caddy-ui-linux-arm64
else
    echo "Unsupported architecture: $ARCH"
    exit 1
fi